package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName zn_scenic_evaluate_like
 */
@TableName(value ="zn_scenic_evaluate_like")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZnScenicEvaluateLike implements Serializable {
    /**
     * 主键,旅游景点评价点赞表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 点赞的评价
     */
    @TableField(value = "evaluate_id")
    private Integer evaluateId;

    /**
     * 点赞的用户
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 点赞状态，0为未点赞，1为点赞
     */
    @TableField(value = "like_status")
    private Integer likeStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}